package com.example.mvvmcore.repository;

import com.example.mvvmcore.model.IModel;

public abstract class BaseRepository<M extends IModel> {
    protected M mModel=null;
    public BaseRepository(){
        mModel=createModel();
    }

    /**
     * 创建Model实例
     * @return
     */
    protected abstract M createModel();
}
